<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
            {{message}}
            <p v-if="show">帅哥</p>
            <img v-bind:src="imgUrl">
            <button v-on:click="handleClose">点击隐藏</button>
    </div>
    <div>

    </div>
    <script src="https://cdn.jsdelivr.net/npm/vue"></script>
    <script>
        var app=new Vue({
            el:'#app',
            data:{
                show:true,
                message:'你好啊',
                imgUrl:'imgs/timg3O95ENPA.jpg'
            },
            methods:{
                handleClose:function(){
                    this.show=false
                }
            }
        })
    </script>
</body>
</html>